package cn.bitkit.mybatis.criteria;

import cn.bitkit.mybatis.annotation.Query;
import cn.bitkit.mybatis.base.BaseCriteria;

/**
 * @author changbo
 */
public class LessThanCriteria implements BaseCriteria {

    @Override
    public String getSql(Query query, String fieldName, Object fieldValue, String column) {
        String value = "#{" + fieldName + "}";
        return column + " < " + value;
    }

}
